package com.mayikt.main.api;

import com.mayikt.common.core.api.BaseResponse;
import com.mayikt.main.api.dto.res.LoginUserReqDto;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Api(tags = "登录接口")
public interface LoginService {
    /**
     * 用户登录接口
     *
     * @param
     * @param
     * @return
     */
    @PostMapping("login")
    @ApiOperation(value = "登录接口", notes = "根据手机号码、密码 实现登录")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "password", value = "密码", required = true),
            @ApiImplicitParam(paramType = "query", name = "phoneNumber", value = "手机号码", required = true)

    })
    @ApiResponses({
            @ApiResponse(code = 200, message = "登录成功"),
            @ApiResponse(code = 500, message = "登录失败")})
    BaseResponse<String> login(@RequestBody LoginUserReqDto loginUserReqDto);
}